//package com.ruoyi.web.controller.websocket.websocket;
//
//import javax.servlet.http.HttpSession;
//import javax.websocket.HandshakeResponse;
//import javax.websocket.server.HandshakeRequest;
//import javax.websocket.server.ServerEndpointConfig;
//
//public class GetHttpSessionConfig extends ServerEndpointConfig.Configurator {
//    @Override
//    public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response) {
//        //获取HttpSession对象
//        HttpSession httpSession = (HttpSession) request.getHttpSession();
//        System.out.println("userName:"+request.getQueryString());
//        //获取HttpSession对象存起来
//        sec.getUserProperties().put(request.getQueryString().toString(),httpSession);
//    }
//}
